Using dialogs with wxEuphoria
func color_selector( atom parent, atom initial )
func file_selector( atom parent, sequence message, sequence info, atom flag )
func font_selector( atom parent, atom initial )
Subtopics:
wxColourData
wxColourDialog
wxDialog
wxDirDialog
wxFontDialog
wxPageSetupDialog
wxPrintDialog
wxProgressDialog
Category: Dialogs
This is a wrapper for wxColourDialog. It returns a
wxColour object, or zero, if the user clicked the cancel button.
See Also:
file_selector,
font_selector
[func]
file_selector ( atom parent, sequence message, sequence info, atom flag )
Category: Dialogs
Pops up a file selector box. In Windows, this is the common file selector dialog. In X,
this is a file selector box with the same functionality. This function is used for
both open and save dialogs.
info is a sequence containing:
- path
- file
- extension
- wildcard
You may supply none or any number of these, but file_selector() will assume they are
in this order, so in order to specify a wildcard selection, you must specify the others, even
if they are empty sequences.
The path and filename are distinct
elements of a full file pathname. If path is empty, the current directory will be used.
If filename is empty, no default filename will be supplied. The wildcard determines what
files are displayed in the file selector, and file extension supplies a type extension for
the required filename.
Flags may be a combination of wxOPEN, wxSAVE, wxOVERWRITE_PROMPT,
wxHIDE_READONLY, wxFILE_MUST_EXIST, wxMULTIPLE or 0.
Both the Unix and Windows versions implement a wildcard filter. Typing a filename
containing wildcards (*, ?) in the filename text item, and clicking on Ok, will result
in only those files matching the pattern being displayed.
The wildcard may be a specification for multiple types of file with a description for each, such as:
code
"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
endcode
See Also:
color_selector,
font_selector
Category: Dialogs
This is a wrapper for wxFontDialog. parent is the
parent for the dialog (it may be null), and initial is
the wxFont object that will be initially selected when
the dialog is opened. If a font is selected (the user clicks
OK), the new wxFont object is returned, otherwise the return
value is zero.
See Also:
color_selector,
file_selector